<?php
return [
    // 路由配置
    'URL_ROUTE_RULES'=>[
        // 说明：在可以分页[有p参数]的页面中，不加$后缀！

        // Index controller.
        'p/:pid\d$' => ['index/index'],
        'c/:cid\d$' => ['index/index'],
        'c/:cid\d/p/:pid\d$' => ['index/index'],

        // Doc controller.
        'doc/:did\d$' => ['doc/show'],     // 兼容原来url访问
        'd/:did\d/c/:cid\d$' => ['doc/index'],     // 兼容原来url访问
        'show/:did\d$' => ['doc/show'],
        'set/:did\d$' => ['doc/set'],
        'hide/:did\d$' => ['doc/hide'],
        'freeze/:did\d$' => ['doc/freeze'],

        ':did\d$' => ['doc/index'],
        ':did\d/c/:cid\d$' => ['doc/index'],
        'e/:did\d$' => ['doc/edit'],        // 一般管理员或登录用户对文档进行编辑
        'e/:did\d/c/:cid\d$' => ['doc/edit'],
        'review/:aid\d$' => ['doc/review'],

    ],
];